package com.itheima.youdianda.common;import com.itheima.youdianda.entity.YddUser;import lombok.AllArgsConstructor;import lombok.Data;import lombok.NoArgsConstructor;@Data@NoArgsConstructor@AllArgsConstructorpublic class ResultData {    private Integer errno;    private String errmsg;    private Object data;    public static ResultData succeed(String errmsg, Object data){        return new ResultData(0, errmsg, data);    }    public static ResultData succeed(Object data) {        return new ResultData(0, "", data);    }    public static ResultData error(String errmsg){        return new ResultData(1000, errmsg, null);    }    public static ResultData notLogin(){        return new ResultData(9998, "未登录，不允许操作！", null);    }}